import { h as Ve, nextTick as gt, createVNode as re, ref as G, onMounted as Ne, watchEffect as be, openBlock as Y, createElementBlock as j, createElementVNode as v, renderSlot as W, Fragment as U, renderList as q, toDisplayString as ue, normalizeClass as Pe, unref as Q, toRaw as Ie, watch as st, markRaw as pt, computed as vt, createBlock as bt, resolveDynamicComponent as _t, mergeProps as Ct, withCtx as ke, createTextVNode as ze } from "vue";
function V(e, n) {
  kt(e) && (e = "100%");
  var t = wt(e);
  return e = n === 360 ? e : Math.min(n, Math.max(0, parseFloat(e))), t && (e = parseInt(String(e * n), 10) / 100), Math.abs(e - n) < 1e-6 ? 1 : (n === 360 ? e = (e < 0 ? e % n + n : e % n) / parseFloat(String(n)) : e = e % n / parseFloat(String(n)), e);
}
function kt(e) {
  return typeof e == "string" && e.indexOf(".") !== -1 && parseFloat(e) === 1;
}
function wt(e) {
  return typeof e == "string" && e.indexOf("%") !== -1;
}
function $t(e) {
  return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
}
function ye(e) {
  return e <= 1 ? "".concat(Number(e) * 100, "%") : e;
}
function we(e) {
  return e.length === 1 ? "0" + e : String(e);
}
function St(e, n, t) {
  return {
    r: V(e, 255) * 255,
    g: V(n, 255) * 255,
    b: V(t, 255) * 255
  };
}
function $e(e, n, t) {
  return t < 0 && (t += 1), t > 1 && (t -= 1), t < 1 / 6 ? e + (n - e) * (6 * t) : t < 1 / 2 ? n : t < 2 / 3 ? e + (n - e) * (2 / 3 - t) * 6 : e;
}
function Dt(e, n, t) {
  var r, a, o;
  if (e = V(e, 360), n = V(n, 100), t = V(t, 100), n === 0)
    a = t, o = t, r = t;
  else {
    var u = t < 0.5 ? t * (1 + n) : t + n - t * n, y = 2 * t - u;
    r = $e(y, u, e + 1 / 3), a = $e(y, u, e), o = $e(y, u, e - 1 / 3);
  }
  return { r: r * 255, g: a * 255, b: o * 255 };
}
function Ot(e, n, t) {
  e = V(e, 255), n = V(n, 255), t = V(t, 255);
  var r = Math.max(e, n, t), a = Math.min(e, n, t), o = 0, u = r, y = r - a, m = r === 0 ? 0 : y / r;
  if (r === a)
    o = 0;
  else {
    switch (r) {
      case e:
        o = (n - t) / y + (n < t ? 6 : 0);
        break;
      case n:
        o = (t - e) / y + 2;
        break;
      case t:
        o = (e - n) / y + 4;
        break;
    }
    o /= 6;
  }
  return { h: o, s: m, v: u };
}
function Mt(e, n, t) {
  e = V(e, 360) * 6, n = V(n, 100), t = V(t, 100);
  var r = Math.floor(e), a = e - r, o = t * (1 - n), u = t * (1 - a * n), y = t * (1 - (1 - a) * n), m = r % 6, k = [t, u, o, o, y, t][m], M = [y, t, t, u, o, o][m], w = [o, o, y, t, t, u][m];
  return { r: k * 255, g: M * 255, b: w * 255 };
}
function Tt(e, n, t, r) {
  var a = [
    we(Math.round(e).toString(16)),
    we(Math.round(n).toString(16)),
    we(Math.round(t).toString(16))
  ];
  return r && a[0].startsWith(a[0].charAt(1)) && a[1].startsWith(a[1].charAt(1)) && a[2].startsWith(a[2].charAt(1)) ? a[0].charAt(0) + a[1].charAt(0) + a[2].charAt(0) : a.join("");
}
function Ue(e) {
  return B(e) / 255;
}
function B(e) {
  return parseInt(e, 16);
}
var qe = {
  aliceblue: "#f0f8ff",
  antiquewhite: "#faebd7",
  aqua: "#00ffff",
  aquamarine: "#7fffd4",
  azure: "#f0ffff",
  beige: "#f5f5dc",
  bisque: "#ffe4c4",
  black: "#000000",
  blanchedalmond: "#ffebcd",
  blue: "#0000ff",
  blueviolet: "#8a2be2",
  brown: "#a52a2a",
  burlywood: "#deb887",
  cadetblue: "#5f9ea0",
  chartreuse: "#7fff00",
  chocolate: "#d2691e",
  coral: "#ff7f50",
  cornflowerblue: "#6495ed",
  cornsilk: "#fff8dc",
  crimson: "#dc143c",
  cyan: "#00ffff",
  darkblue: "#00008b",
  darkcyan: "#008b8b",
  darkgoldenrod: "#b8860b",
  darkgray: "#a9a9a9",
  darkgreen: "#006400",
  darkgrey: "#a9a9a9",
  darkkhaki: "#bdb76b",
  darkmagenta: "#8b008b",
  darkolivegreen: "#556b2f",
  darkorange: "#ff8c00",
  darkorchid: "#9932cc",
  darkred: "#8b0000",
  darksalmon: "#e9967a",
  darkseagreen: "#8fbc8f",
  darkslateblue: "#483d8b",
  darkslategray: "#2f4f4f",
  darkslategrey: "#2f4f4f",
  darkturquoise: "#00ced1",
  darkviolet: "#9400d3",
  deeppink: "#ff1493",
  deepskyblue: "#00bfff",
  dimgray: "#696969",
  dimgrey: "#696969",
  dodgerblue: "#1e90ff",
  firebrick: "#b22222",
  floralwhite: "#fffaf0",
  forestgreen: "#228b22",
  fuchsia: "#ff00ff",
  gainsboro: "#dcdcdc",
  ghostwhite: "#f8f8ff",
  goldenrod: "#daa520",
  gold: "#ffd700",
  gray: "#808080",
  green: "#008000",
  greenyellow: "#adff2f",
  grey: "#808080",
  honeydew: "#f0fff0",
  hotpink: "#ff69b4",
  indianred: "#cd5c5c",
  indigo: "#4b0082",
  ivory: "#fffff0",
  khaki: "#f0e68c",
  lavenderblush: "#fff0f5",
  lavender: "#e6e6fa",
  lawngreen: "#7cfc00",
  lemonchiffon: "#fffacd",
  lightblue: "#add8e6",
  lightcoral: "#f08080",
  lightcyan: "#e0ffff",
  lightgoldenrodyellow: "#fafad2",
  lightgray: "#d3d3d3",
  lightgreen: "#90ee90",
  lightgrey: "#d3d3d3",
  lightpink: "#ffb6c1",
  lightsalmon: "#ffa07a",
  lightseagreen: "#20b2aa",
  lightskyblue: "#87cefa",
  lightslategray: "#778899",
  lightslategrey: "#778899",
  lightsteelblue: "#b0c4de",
  lightyellow: "#ffffe0",
  lime: "#00ff00",
  limegreen: "#32cd32",
  linen: "#faf0e6",
  magenta: "#ff00ff",
  maroon: "#800000",
  mediumaquamarine: "#66cdaa",
  mediumblue: "#0000cd",
  mediumorchid: "#ba55d3",
  mediumpurple: "#9370db",
  mediumseagreen: "#3cb371",
  mediumslateblue: "#7b68ee",
  mediumspringgreen: "#00fa9a",
  mediumturquoise: "#48d1cc",
  mediumvioletred: "#c71585",
  midnightblue: "#191970",
  mintcream: "#f5fffa",
  mistyrose: "#ffe4e1",
  moccasin: "#ffe4b5",
  navajowhite: "#ffdead",
  navy: "#000080",
  oldlace: "#fdf5e6",
  olive: "#808000",
  olivedrab: "#6b8e23",
  orange: "#ffa500",
  orangered: "#ff4500",
  orchid: "#da70d6",
  palegoldenrod: "#eee8aa",
  palegreen: "#98fb98",
  paleturquoise: "#afeeee",
  palevioletred: "#db7093",
  papayawhip: "#ffefd5",
  peachpuff: "#ffdab9",
  peru: "#cd853f",
  pink: "#ffc0cb",
  plum: "#dda0dd",
  powderblue: "#b0e0e6",
  purple: "#800080",
  rebeccapurple: "#663399",
  red: "#ff0000",
  rosybrown: "#bc8f8f",
  royalblue: "#4169e1",
  saddlebrown: "#8b4513",
  salmon: "#fa8072",
  sandybrown: "#f4a460",
  seagreen: "#2e8b57",
  seashell: "#fff5ee",
  sienna: "#a0522d",
  silver: "#c0c0c0",
  skyblue: "#87ceeb",
  slateblue: "#6a5acd",
  slategray: "#708090",
  slategrey: "#708090",
  snow: "#fffafa",
  springgreen: "#00ff7f",
  steelblue: "#4682b4",
  tan: "#d2b48c",
  teal: "#008080",
  thistle: "#d8bfd8",
  tomato: "#ff6347",
  turquoise: "#40e0d0",
  violet: "#ee82ee",
  wheat: "#f5deb3",
  white: "#ffffff",
  whitesmoke: "#f5f5f5",
  yellow: "#ffff00",
  yellowgreen: "#9acd32"
};
function se(e) {
  var n = { r: 0, g: 0, b: 0 }, t = 1, r = null, a = null, o = null, u = !1, y = !1;
  return typeof e == "string" && (e = Yt(e)), typeof e == "object" && (J(e.r) && J(e.g) && J(e.b) ? (n = St(e.r, e.g, e.b), u = !0, y = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : J(e.h) && J(e.s) && J(e.v) ? (r = ye(e.s), a = ye(e.v), n = Mt(e.h, r, a), u = !0, y = "hsv") : J(e.h) && J(e.s) && J(e.l) && (r = ye(e.s), o = ye(e.l), n = Dt(e.h, r, o), u = !0, y = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (t = e.a)), t = $t(t), {
    ok: u,
    format: e.format || y,
    r: Math.min(255, Math.max(n.r, 0)),
    g: Math.min(255, Math.max(n.g, 0)),
    b: Math.min(255, Math.max(n.b, 0)),
    a: t
  };
}
var xt = "[-\\+]?\\d+%?", At = "[-\\+]?\\d*\\.\\d+%?", ee = "(?:".concat(At, ")|(?:").concat(xt, ")"), Se = "[\\s|\\(]+(".concat(ee, ")[,|\\s]+(").concat(ee, ")[,|\\s]+(").concat(ee, ")\\s*\\)?"), De = "[\\s|\\(]+(".concat(ee, ")[,|\\s]+(").concat(ee, ")[,|\\s]+(").concat(ee, ")[,|\\s]+(").concat(ee, ")\\s*\\)?"), z = {
  CSS_UNIT: new RegExp(ee),
  rgb: new RegExp("rgb" + Se),
  rgba: new RegExp("rgba" + De),
  hsl: new RegExp("hsl" + Se),
  hsla: new RegExp("hsla" + De),
  hsv: new RegExp("hsv" + Se),
  hsva: new RegExp("hsva" + De),
  hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
  hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
  hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
  hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
};
function Yt(e) {
  if (e = e.trim().toLowerCase(), e.length === 0)
    return !1;
  var n = !1;
  if (qe[e])
    e = qe[e], n = !0;
  else if (e === "transparent")
    return { r: 0, g: 0, b: 0, a: 0, format: "name" };
  var t = z.rgb.exec(e);
  return t ? { r: t[1], g: t[2], b: t[3] } : (t = z.rgba.exec(e), t ? { r: t[1], g: t[2], b: t[3], a: t[4] } : (t = z.hsl.exec(e), t ? { h: t[1], s: t[2], l: t[3] } : (t = z.hsla.exec(e), t ? { h: t[1], s: t[2], l: t[3], a: t[4] } : (t = z.hsv.exec(e), t ? { h: t[1], s: t[2], v: t[3] } : (t = z.hsva.exec(e), t ? { h: t[1], s: t[2], v: t[3], a: t[4] } : (t = z.hex8.exec(e), t ? {
    r: B(t[1]),
    g: B(t[2]),
    b: B(t[3]),
    a: Ue(t[4]),
    format: n ? "name" : "hex8"
  } : (t = z.hex6.exec(e), t ? {
    r: B(t[1]),
    g: B(t[2]),
    b: B(t[3]),
    format: n ? "name" : "hex"
  } : (t = z.hex4.exec(e), t ? {
    r: B(t[1] + t[1]),
    g: B(t[2] + t[2]),
    b: B(t[3] + t[3]),
    a: Ue(t[4] + t[4]),
    format: n ? "name" : "hex8"
  } : (t = z.hex3.exec(e), t ? {
    r: B(t[1] + t[1]),
    g: B(t[2] + t[2]),
    b: B(t[3] + t[3]),
    format: n ? "name" : "hex"
  } : !1)))))))));
}
function J(e) {
  return Boolean(z.CSS_UNIT.exec(String(e)));
}
var me = 2, Ze = 0.16, jt = 0.05, Nt = 0.05, Pt = 0.15, ct = 5, ut = 4, It = [{
  index: 7,
  opacity: 0.15
}, {
  index: 6,
  opacity: 0.25
}, {
  index: 5,
  opacity: 0.3
}, {
  index: 5,
  opacity: 0.45
}, {
  index: 5,
  opacity: 0.65
}, {
  index: 5,
  opacity: 0.85
}, {
  index: 4,
  opacity: 0.9
}, {
  index: 3,
  opacity: 0.95
}, {
  index: 2,
  opacity: 0.97
}, {
  index: 1,
  opacity: 0.98
}];
function Je(e) {
  var n = e.r, t = e.g, r = e.b, a = Ot(n, t, r);
  return {
    h: a.h * 360,
    s: a.s,
    v: a.v
  };
}
function ge(e) {
  var n = e.r, t = e.g, r = e.b;
  return "#".concat(Tt(n, t, r, !1));
}
function Et(e, n, t) {
  var r = t / 100, a = {
    r: (n.r - e.r) * r + e.r,
    g: (n.g - e.g) * r + e.g,
    b: (n.b - e.b) * r + e.b
  };
  return a;
}
function Ge(e, n, t) {
  var r;
  return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? r = t ? Math.round(e.h) - me * n : Math.round(e.h) + me * n : r = t ? Math.round(e.h) + me * n : Math.round(e.h) - me * n, r < 0 ? r += 360 : r >= 360 && (r -= 360), r;
}
function Qe(e, n, t) {
  if (e.h === 0 && e.s === 0)
    return e.s;
  var r;
  return t ? r = e.s - Ze * n : n === ut ? r = e.s + Ze : r = e.s + jt * n, r > 1 && (r = 1), t && n === ct && r > 0.1 && (r = 0.1), r < 0.06 && (r = 0.06), Number(r.toFixed(2));
}
function Xe(e, n, t) {
  var r;
  return t ? r = e.v + Nt * n : r = e.v - Pt * n, r > 1 && (r = 1), Number(r.toFixed(2));
}
function xe(e) {
  for (var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], r = se(e), a = ct; a > 0; a -= 1) {
    var o = Je(r), u = ge(se({
      h: Ge(o, a, !0),
      s: Qe(o, a, !0),
      v: Xe(o, a, !0)
    }));
    t.push(u);
  }
  t.push(ge(r));
  for (var y = 1; y <= ut; y += 1) {
    var m = Je(r), k = ge(se({
      h: Ge(m, y),
      s: Qe(m, y),
      v: Xe(m, y)
    }));
    t.push(k);
  }
  return n.theme === "dark" ? It.map(function(M) {
    var w = M.index, i = M.opacity, s = ge(Et(se(n.backgroundColor || "#141414"), se(t[w]), i * 100));
    return s;
  }) : t;
}
var Oe = {
  red: "#F5222D",
  volcano: "#FA541C",
  orange: "#FA8C16",
  gold: "#FAAD14",
  yellow: "#FADB14",
  lime: "#A0D911",
  green: "#52C41A",
  cyan: "#13C2C2",
  blue: "#1890FF",
  geekblue: "#2F54EB",
  purple: "#722ED1",
  magenta: "#EB2F96",
  grey: "#666666"
}, Me = {}, Te = {};
Object.keys(Oe).forEach(function(e) {
  Me[e] = xe(Oe[e]), Me[e].primary = Me[e][5], Te[e] = xe(Oe[e], {
    theme: "dark",
    backgroundColor: "#141414"
  }), Te[e].primary = Te[e][5];
});
var Ke = [], ce = [], Ft = "insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";
function Lt() {
  var e = document.createElement("style");
  return e.setAttribute("type", "text/css"), e;
}
function Ht(e, n) {
  if (n = n || {}, e === void 0)
    throw new Error(Ft);
  var t = n.prepend === !0 ? "prepend" : "append", r = n.container !== void 0 ? n.container : document.querySelector("head"), a = Ke.indexOf(r);
  a === -1 && (a = Ke.push(r) - 1, ce[a] = {});
  var o;
  return ce[a] !== void 0 && ce[a][t] !== void 0 ? o = ce[a][t] : (o = ce[a][t] = Lt(), t === "prepend" ? r.insertBefore(o, r.childNodes[0]) : r.appendChild(o)), e.charCodeAt(0) === 65279 && (e = e.substr(1, e.length)), o.styleSheet ? o.styleSheet.cssText += e : o.textContent += e, o;
}
function et(e) {
  for (var n = 1; n < arguments.length; n++) {
    var t = arguments[n] != null ? Object(arguments[n]) : {}, r = Object.keys(t);
    typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(t).filter(function(a) {
      return Object.getOwnPropertyDescriptor(t, a).enumerable;
    }))), r.forEach(function(a) {
      Rt(e, a, t[a]);
    });
  }
  return e;
}
function Rt(e, n, t) {
  return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
}
function Wt(e, n) {
  process.env.NODE_ENV !== "production" && !e && console !== void 0 && console.error("Warning: ".concat(n));
}
function Bt(e, n) {
  Wt(e, "[@ant-design/icons-vue] ".concat(n));
}
function tt(e) {
  return typeof e == "object" && typeof e.name == "string" && typeof e.theme == "string" && (typeof e.icon == "object" || typeof e.icon == "function");
}
function Ae(e, n, t) {
  return t ? Ve(e.tag, et({
    key: n
  }, t, e.attrs), (e.children || []).map(function(r, a) {
    return Ae(r, "".concat(n, "-").concat(e.tag, "-").concat(a));
  })) : Ve(e.tag, et({
    key: n
  }, e.attrs), (e.children || []).map(function(r, a) {
    return Ae(r, "".concat(n, "-").concat(e.tag, "-").concat(a));
  }));
}
function dt(e) {
  return xe(e)[0];
}
function ft(e) {
  return e ? Array.isArray(e) ? e : [e] : [];
}
var Vt = `
.anticon {
  display: inline-block;
  color: inherit;
  font-style: normal;
  line-height: 0;
  text-align: center;
  text-transform: none;
  vertical-align: -0.125em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.anticon > * {
  line-height: 1;
}

.anticon svg {
  display: inline-block;
}

.anticon::before {
  display: none;
}

.anticon .anticon-icon {
  display: block;
}

.anticon[tabindex] {
  cursor: pointer;
}

.anticon-spin::before,
.anticon-spin {
  display: inline-block;
  -webkit-animation: loadingCircle 1s infinite linear;
  animation: loadingCircle 1s infinite linear;
}

@-webkit-keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
`, nt = !1, zt = function() {
  var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Vt;
  gt(function() {
    nt || (typeof window < "u" && window.document && window.document.documentElement && Ht(n, {
      prepend: !0
    }), nt = !0);
  });
}, Ut = ["icon", "primaryColor", "secondaryColor"];
function qt(e, n) {
  if (e == null)
    return {};
  var t = Zt(e, n), r, a;
  if (Object.getOwnPropertySymbols) {
    var o = Object.getOwnPropertySymbols(e);
    for (a = 0; a < o.length; a++)
      r = o[a], !(n.indexOf(r) >= 0) && (!Object.prototype.propertyIsEnumerable.call(e, r) || (t[r] = e[r]));
  }
  return t;
}
function Zt(e, n) {
  if (e == null)
    return {};
  var t = {}, r = Object.keys(e), a, o;
  for (o = 0; o < r.length; o++)
    a = r[o], !(n.indexOf(a) >= 0) && (t[a] = e[a]);
  return t;
}
function pe(e) {
  for (var n = 1; n < arguments.length; n++) {
    var t = arguments[n] != null ? Object(arguments[n]) : {}, r = Object.keys(t);
    typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(t).filter(function(a) {
      return Object.getOwnPropertyDescriptor(t, a).enumerable;
    }))), r.forEach(function(a) {
      Jt(e, a, t[a]);
    });
  }
  return e;
}
function Jt(e, n, t) {
  return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
}
var de = {
  primaryColor: "#333",
  secondaryColor: "#E6E6E6",
  calculated: !1
};
function Gt(e) {
  var n = e.primaryColor, t = e.secondaryColor;
  de.primaryColor = n, de.secondaryColor = t || dt(n), de.calculated = !!t;
}
function Qt() {
  return pe({}, de);
}
var ae = function(n, t) {
  var r = pe({}, n, t.attrs), a = r.icon, o = r.primaryColor, u = r.secondaryColor, y = qt(r, Ut), m = de;
  if (o && (m = {
    primaryColor: o,
    secondaryColor: u || dt(o)
  }), zt(), Bt(tt(a), "icon should be icon definiton, but got ".concat(a)), !tt(a))
    return null;
  var k = a;
  return k && typeof k.icon == "function" && (k = pe({}, k, {
    icon: k.icon(m.primaryColor, m.secondaryColor)
  })), Ae(k.icon, "svg-".concat(k.name), pe({}, y, {
    "data-icon": k.name,
    width: "1em",
    height: "1em",
    fill: "currentColor",
    "aria-hidden": "true"
  }));
};
ae.props = {
  icon: Object,
  primaryColor: String,
  secondaryColor: String,
  focusable: String
};
ae.inheritAttrs = !1;
ae.displayName = "IconBase";
ae.getTwoToneColors = Qt;
ae.setTwoToneColors = Gt;
const Ee = ae;
function Xt(e, n) {
  return nn(e) || tn(e, n) || en(e, n) || Kt();
}
function Kt() {
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
function en(e, n) {
  if (!!e) {
    if (typeof e == "string")
      return rt(e, n);
    var t = Object.prototype.toString.call(e).slice(8, -1);
    if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set")
      return Array.from(e);
    if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
      return rt(e, n);
  }
}
function rt(e, n) {
  (n == null || n > e.length) && (n = e.length);
  for (var t = 0, r = new Array(n); t < n; t++)
    r[t] = e[t];
  return r;
}
function tn(e, n) {
  var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
  if (t != null) {
    var r = [], a = !0, o = !1, u, y;
    try {
      for (t = t.call(e); !(a = (u = t.next()).done) && (r.push(u.value), !(n && r.length === n)); a = !0)
        ;
    } catch (m) {
      o = !0, y = m;
    } finally {
      try {
        !a && t.return != null && t.return();
      } finally {
        if (o)
          throw y;
      }
    }
    return r;
  }
}
function nn(e) {
  if (Array.isArray(e))
    return e;
}
function ht(e) {
  var n = ft(e), t = Xt(n, 2), r = t[0], a = t[1];
  return Ee.setTwoToneColors({
    primaryColor: r,
    secondaryColor: a
  });
}
function rn() {
  var e = Ee.getTwoToneColors();
  return e.calculated ? [e.primaryColor, e.secondaryColor] : e.primaryColor;
}
var an = ["class", "icon", "spin", "rotate", "tabindex", "twoToneColor", "onClick"];
function on(e, n) {
  return un(e) || cn(e, n) || sn(e, n) || ln();
}
function ln() {
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
function sn(e, n) {
  if (!!e) {
    if (typeof e == "string")
      return at(e, n);
    var t = Object.prototype.toString.call(e).slice(8, -1);
    if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set")
      return Array.from(e);
    if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
      return at(e, n);
  }
}
function at(e, n) {
  (n == null || n > e.length) && (n = e.length);
  for (var t = 0, r = new Array(n); t < n; t++)
    r[t] = e[t];
  return r;
}
function cn(e, n) {
  var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
  if (t != null) {
    var r = [], a = !0, o = !1, u, y;
    try {
      for (t = t.call(e); !(a = (u = t.next()).done) && (r.push(u.value), !(n && r.length === n)); a = !0)
        ;
    } catch (m) {
      o = !0, y = m;
    } finally {
      try {
        !a && t.return != null && t.return();
      } finally {
        if (o)
          throw y;
      }
    }
    return r;
  }
}
function un(e) {
  if (Array.isArray(e))
    return e;
}
function ot(e) {
  for (var n = 1; n < arguments.length; n++) {
    var t = arguments[n] != null ? Object(arguments[n]) : {}, r = Object.keys(t);
    typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(t).filter(function(a) {
      return Object.getOwnPropertyDescriptor(t, a).enumerable;
    }))), r.forEach(function(a) {
      Ye(e, a, t[a]);
    });
  }
  return e;
}
function Ye(e, n, t) {
  return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
}
function dn(e, n) {
  if (e == null)
    return {};
  var t = fn(e, n), r, a;
  if (Object.getOwnPropertySymbols) {
    var o = Object.getOwnPropertySymbols(e);
    for (a = 0; a < o.length; a++)
      r = o[a], !(n.indexOf(r) >= 0) && (!Object.prototype.propertyIsEnumerable.call(e, r) || (t[r] = e[r]));
  }
  return t;
}
function fn(e, n) {
  if (e == null)
    return {};
  var t = {}, r = Object.keys(e), a, o;
  for (o = 0; o < r.length; o++)
    a = r[o], !(n.indexOf(a) >= 0) && (t[a] = e[a]);
  return t;
}
ht("#1890ff");
var oe = function(n, t) {
  var r, a = ot({}, n, t.attrs), o = a.class, u = a.icon, y = a.spin, m = a.rotate, k = a.tabindex, M = a.twoToneColor, w = a.onClick, i = dn(a, an), s = (r = {
    anticon: !0
  }, Ye(r, "anticon-".concat(u.name), Boolean(u.name)), Ye(r, o, o), r), f = y === "" || !!y || u.name === "loading" ? "anticon-spin" : "", S = k;
  S === void 0 && w && (S = -1, i.tabindex = S);
  var l = m ? {
    msTransform: "rotate(".concat(m, "deg)"),
    transform: "rotate(".concat(m, "deg)")
  } : void 0, $ = ft(M), _ = on($, 2), T = _[0], x = _[1];
  return re("span", ot({
    role: "img",
    "aria-label": u.name
  }, i, {
    onClick: w,
    class: s
  }), [re(Ee, {
    class: f,
    icon: u,
    primaryColor: T,
    secondaryColor: x,
    style: l
  }, null)]);
};
oe.props = {
  spin: Boolean,
  rotate: Number,
  icon: Object,
  twoToneColor: String
};
oe.displayName = "AntdIcon";
oe.inheritAttrs = !1;
oe.getTwoToneColor = rn;
oe.setTwoToneColor = ht;
const yt = oe;
var hn = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, name: "left", theme: "outlined" };
const yn = hn;
function it(e) {
  for (var n = 1; n < arguments.length; n++) {
    var t = arguments[n] != null ? Object(arguments[n]) : {}, r = Object.keys(t);
    typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(t).filter(function(a) {
      return Object.getOwnPropertyDescriptor(t, a).enumerable;
    }))), r.forEach(function(a) {
      mn(e, a, t[a]);
    });
  }
  return e;
}
function mn(e, n, t) {
  return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
}
var Fe = function(n, t) {
  var r = it({}, n, t.attrs);
  return re(yt, it({}, r, {
    icon: yn
  }), null);
};
Fe.displayName = "LeftOutlined";
Fe.inheritAttrs = !1;
const gn = Fe;
var pn = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, name: "right", theme: "outlined" };
const vn = pn;
function lt(e) {
  for (var n = 1; n < arguments.length; n++) {
    var t = arguments[n] != null ? Object(arguments[n]) : {}, r = Object.keys(t);
    typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(t).filter(function(a) {
      return Object.getOwnPropertyDescriptor(t, a).enumerable;
    }))), r.forEach(function(a) {
      bn(e, a, t[a]);
    });
  }
  return e;
}
function bn(e, n, t) {
  return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
}
var Le = function(n, t) {
  var r = lt({}, n, t.attrs);
  return re(yt, lt({}, r, {
    icon: vn
  }), null);
};
Le.displayName = "RightOutlined";
Le.inheritAttrs = !1;
const _n = Le;
var mt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, He = { exports: {} };
(function(e, n) {
  (function(t, r) {
    e.exports = r();
  })(mt, function() {
    var t = 1e3, r = 6e4, a = 36e5, o = "millisecond", u = "second", y = "minute", m = "hour", k = "day", M = "week", w = "month", i = "quarter", s = "year", f = "date", S = "Invalid Date", l = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, $ = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, _ = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_") }, T = function(C, h, c) {
      var g = String(C);
      return !g || g.length >= h ? C : "" + Array(h + 1 - g.length).join(c) + C;
    }, x = { s: T, z: function(C) {
      var h = -C.utcOffset(), c = Math.abs(h), g = Math.floor(c / 60), d = c % 60;
      return (h <= 0 ? "+" : "-") + T(g, 2, "0") + ":" + T(d, 2, "0");
    }, m: function C(h, c) {
      if (h.date() < c.date())
        return -C(c, h);
      var g = 12 * (c.year() - h.year()) + (c.month() - h.month()), d = h.clone().add(g, w), b = c - d < 0, p = h.clone().add(g + (b ? -1 : 1), w);
      return +(-(g + (c - d) / (b ? d - p : p - d)) || 0);
    }, a: function(C) {
      return C < 0 ? Math.ceil(C) || 0 : Math.floor(C);
    }, p: function(C) {
      return { M: w, y: s, w: M, d: k, D: f, h: m, m: y, s: u, ms: o, Q: i }[C] || String(C || "").toLowerCase().replace(/s$/, "");
    }, u: function(C) {
      return C === void 0;
    } }, A = "en", I = {};
    I[A] = _;
    var L = function(C) {
      return C instanceof fe;
    }, te = function C(h, c, g) {
      var d;
      if (!h)
        return A;
      if (typeof h == "string") {
        var b = h.toLowerCase();
        I[b] && (d = b), c && (I[b] = c, d = b);
        var p = h.split("-");
        if (!d && p.length > 1)
          return C(p[0]);
      } else {
        var D = h.name;
        I[D] = h, d = D;
      }
      return !g && d && (A = d), d || !g && A;
    }, E = function(C, h) {
      if (L(C))
        return C.clone();
      var c = typeof h == "object" ? h : {};
      return c.date = C, c.args = arguments, new fe(c);
    }, O = x;
    O.l = te, O.i = L, O.w = function(C, h) {
      return E(C, { locale: h.$L, utc: h.$u, x: h.$x, $offset: h.$offset });
    };
    var fe = function() {
      function C(c) {
        this.$L = te(c.locale, null, !0), this.parse(c);
      }
      var h = C.prototype;
      return h.parse = function(c) {
        this.$d = function(g) {
          var d = g.date, b = g.utc;
          if (d === null)
            return new Date(NaN);
          if (O.u(d))
            return new Date();
          if (d instanceof Date)
            return new Date(d);
          if (typeof d == "string" && !/Z$/i.test(d)) {
            var p = d.match(l);
            if (p) {
              var D = p[2] - 1 || 0, P = (p[7] || "0").substring(0, 3);
              return b ? new Date(Date.UTC(p[1], D, p[3] || 1, p[4] || 0, p[5] || 0, p[6] || 0, P)) : new Date(p[1], D, p[3] || 1, p[4] || 0, p[5] || 0, p[6] || 0, P);
            }
          }
          return new Date(d);
        }(c), this.$x = c.x || {}, this.init();
      }, h.init = function() {
        var c = this.$d;
        this.$y = c.getFullYear(), this.$M = c.getMonth(), this.$D = c.getDate(), this.$W = c.getDay(), this.$H = c.getHours(), this.$m = c.getMinutes(), this.$s = c.getSeconds(), this.$ms = c.getMilliseconds();
      }, h.$utils = function() {
        return O;
      }, h.isValid = function() {
        return this.$d.toString() !== S;
      }, h.isSame = function(c, g) {
        var d = E(c);
        return this.startOf(g) <= d && d <= this.endOf(g);
      }, h.isAfter = function(c, g) {
        return E(c) < this.startOf(g);
      }, h.isBefore = function(c, g) {
        return this.endOf(g) < E(c);
      }, h.$g = function(c, g, d) {
        return O.u(c) ? this[g] : this.set(d, c);
      }, h.unix = function() {
        return Math.floor(this.valueOf() / 1e3);
      }, h.valueOf = function() {
        return this.$d.getTime();
      }, h.startOf = function(c, g) {
        var d = this, b = !!O.u(g) || g, p = O.p(c), D = function(ne, H) {
          var K = O.w(d.$u ? Date.UTC(d.$y, H, ne) : new Date(d.$y, H, ne), d);
          return b ? K : K.endOf(k);
        }, P = function(ne, H) {
          return O.w(d.toDate()[ne].apply(d.toDate("s"), (b ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(H)), d);
        }, N = this.$W, F = this.$M, X = this.$D, Z = "set" + (this.$u ? "UTC" : "");
        switch (p) {
          case s:
            return b ? D(1, 0) : D(31, 11);
          case w:
            return b ? D(1, F) : D(0, F + 1);
          case M:
            var ie = this.$locale().weekStart || 0, le = (N < ie ? N + 7 : N) - ie;
            return D(b ? X - le : X + (6 - le), F);
          case k:
          case f:
            return P(Z + "Hours", 0);
          case m:
            return P(Z + "Minutes", 1);
          case y:
            return P(Z + "Seconds", 2);
          case u:
            return P(Z + "Milliseconds", 3);
          default:
            return this.clone();
        }
      }, h.endOf = function(c) {
        return this.startOf(c, !1);
      }, h.$set = function(c, g) {
        var d, b = O.p(c), p = "set" + (this.$u ? "UTC" : ""), D = (d = {}, d[k] = p + "Date", d[f] = p + "Date", d[w] = p + "Month", d[s] = p + "FullYear", d[m] = p + "Hours", d[y] = p + "Minutes", d[u] = p + "Seconds", d[o] = p + "Milliseconds", d)[b], P = b === k ? this.$D + (g - this.$W) : g;
        if (b === w || b === s) {
          var N = this.clone().set(f, 1);
          N.$d[D](P), N.init(), this.$d = N.set(f, Math.min(this.$D, N.daysInMonth())).$d;
        } else
          D && this.$d[D](P);
        return this.init(), this;
      }, h.set = function(c, g) {
        return this.clone().$set(c, g);
      }, h.get = function(c) {
        return this[O.p(c)]();
      }, h.add = function(c, g) {
        var d, b = this;
        c = Number(c);
        var p = O.p(g), D = function(F) {
          var X = E(b);
          return O.w(X.date(X.date() + Math.round(F * c)), b);
        };
        if (p === w)
          return this.set(w, this.$M + c);
        if (p === s)
          return this.set(s, this.$y + c);
        if (p === k)
          return D(1);
        if (p === M)
          return D(7);
        var P = (d = {}, d[y] = r, d[m] = a, d[u] = t, d)[p] || 1, N = this.$d.getTime() + c * P;
        return O.w(N, this);
      }, h.subtract = function(c, g) {
        return this.add(-1 * c, g);
      }, h.format = function(c) {
        var g = this, d = this.$locale();
        if (!this.isValid())
          return d.invalidDate || S;
        var b = c || "YYYY-MM-DDTHH:mm:ssZ", p = O.z(this), D = this.$H, P = this.$m, N = this.$M, F = d.weekdays, X = d.months, Z = function(H, K, Ce, he) {
          return H && (H[K] || H(g, b)) || Ce[K].slice(0, he);
        }, ie = function(H) {
          return O.s(D % 12 || 12, H, "0");
        }, le = d.meridiem || function(H, K, Ce) {
          var he = H < 12 ? "AM" : "PM";
          return Ce ? he.toLowerCase() : he;
        }, ne = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: N + 1, MM: O.s(N + 1, 2, "0"), MMM: Z(d.monthsShort, N, X, 3), MMMM: Z(X, N), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: Z(d.weekdaysMin, this.$W, F, 2), ddd: Z(d.weekdaysShort, this.$W, F, 3), dddd: F[this.$W], H: String(D), HH: O.s(D, 2, "0"), h: ie(1), hh: ie(2), a: le(D, P, !0), A: le(D, P, !1), m: String(P), mm: O.s(P, 2, "0"), s: String(this.$s), ss: O.s(this.$s, 2, "0"), SSS: O.s(this.$ms, 3, "0"), Z: p };
        return b.replace($, function(H, K) {
          return K || ne[H] || p.replace(":", "");
        });
      }, h.utcOffset = function() {
        return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
      }, h.diff = function(c, g, d) {
        var b, p = O.p(g), D = E(c), P = (D.utcOffset() - this.utcOffset()) * r, N = this - D, F = O.m(this, D);
        return F = (b = {}, b[s] = F / 12, b[w] = F, b[i] = F / 3, b[M] = (N - P) / 6048e5, b[k] = (N - P) / 864e5, b[m] = N / a, b[y] = N / r, b[u] = N / t, b)[p] || N, d ? F : O.a(F);
      }, h.daysInMonth = function() {
        return this.endOf(w).$D;
      }, h.$locale = function() {
        return I[this.$L];
      }, h.locale = function(c, g) {
        if (!c)
          return this.$L;
        var d = this.clone(), b = te(c, g, !0);
        return b && (d.$L = b), d;
      }, h.clone = function() {
        return O.w(this.$d, this);
      }, h.toDate = function() {
        return new Date(this.valueOf());
      }, h.toJSON = function() {
        return this.isValid() ? this.toISOString() : null;
      }, h.toISOString = function() {
        return this.$d.toISOString();
      }, h.toString = function() {
        return this.$d.toUTCString();
      }, C;
    }(), Be = fe.prototype;
    return E.prototype = Be, [["$ms", o], ["$s", u], ["$m", y], ["$H", m], ["$W", k], ["$M", w], ["$y", s], ["$D", f]].forEach(function(C) {
      Be[C[1]] = function(h) {
        return this.$g(h, C[0], C[1]);
      };
    }), E.extend = function(C, h) {
      return C.$i || (C(h, fe, E), C.$i = !0), E;
    }, E.locale = te, E.isDayjs = L, E.unix = function(C) {
      return E(1e3 * C);
    }, E.en = I[A], E.Ls = I, E.p = {}, E;
  });
})(He);
const R = He.exports;
var Cn = { exports: {} };
(function(e, n) {
  (function(t, r) {
    e.exports = r(He.exports);
  })(mt, function(t) {
    function r(u) {
      return u && typeof u == "object" && "default" in u ? u : { default: u };
    }
    var a = r(t), o = { name: "zh-cn", weekdays: "\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"), weekdaysShort: "\u5468\u65E5_\u5468\u4E00_\u5468\u4E8C_\u5468\u4E09_\u5468\u56DB_\u5468\u4E94_\u5468\u516D".split("_"), weekdaysMin: "\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"), months: "\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"), monthsShort: "1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"), ordinal: function(u, y) {
      return y === "W" ? u + "\u5468" : u + "\u65E5";
    }, weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY\u5E74M\u6708D\u65E5", LLL: "YYYY\u5E74M\u6708D\u65E5Ah\u70B9mm\u5206", LLLL: "YYYY\u5E74M\u6708D\u65E5ddddAh\u70B9mm\u5206", l: "YYYY/M/D", ll: "YYYY\u5E74M\u6708D\u65E5", lll: "YYYY\u5E74M\u6708D\u65E5 HH:mm", llll: "YYYY\u5E74M\u6708D\u65E5dddd HH:mm" }, relativeTime: { future: "%s\u5185", past: "%s\u524D", s: "\u51E0\u79D2", m: "1 \u5206\u949F", mm: "%d \u5206\u949F", h: "1 \u5C0F\u65F6", hh: "%d \u5C0F\u65F6", d: "1 \u5929", dd: "%d \u5929", M: "1 \u4E2A\u6708", MM: "%d \u4E2A\u6708", y: "1 \u5E74", yy: "%d \u5E74" }, meridiem: function(u, y) {
      var m = 100 * u + y;
      return m < 600 ? "\u51CC\u6668" : m < 900 ? "\u65E9\u4E0A" : m < 1100 ? "\u4E0A\u5348" : m < 1300 ? "\u4E2D\u5348" : m < 1800 ? "\u4E0B\u5348" : "\u665A\u4E0A";
    } };
    return a.default.locale(o, null, !0), o;
  });
})(Cn);
R.locale("zh-cn");
const kn = () => {
  const e = (l) => {
    l = l instanceof Date ? l : new Date(l);
    let $ = l.getFullYear(), _ = l.getMonth() + 1, T = t(l.getDate()), x = l.getDay(), A = a(l), I = $ + "-" + _ + "-" + T;
    return x === 0 && (x = 7), { year: $, month: _, day: T, week: x, value: A, date: I };
  }, n = (l, $, _, T = !0) => T ? R(new Date(l, $ - 1, _)) : new Date(l, $ - 1, _), t = (l) => (l = Number(l), l < 10 ? `0${l}` : l), r = (l = new Date(), $ = "YYYY-MM-DD") => R(l).format($), a = (l) => R(l).valueOf();
  return {
    getDate: e,
    setNewDate: n,
    format: r,
    getValue: a,
    getYearMonth: (l, $) => new Date(l, $, 0).getDate(),
    getMonth: (l) => R().daysInMonth(l),
    handleYear: (l) => R().year(l),
    handleMonth: (l) => R().month(l),
    handleDate: (l) => R().month(l),
    handleDay: (l) => R().day(l),
    setDate: (l, $) => R().set($, l),
    addDate: (l, $, _) => R(l).add($, _),
    subtractDate: (l, $, _) => R(l).subtract($, _),
    startDate: (l = "", $) => R(l).startOf($),
    endDate: (l = "", $) => R(l).endOf($)
  };
}, Re = (e = "week", n = "single") => {
  const t = kn(), r = t.getDate(new Date());
  let a = {}, o = {}, u = {}, y = [];
  const m = (_) => {
    let { year: T } = r, { year: x } = t.getDate(_);
    return T == x;
  }, k = (_) => {
    let { year: T, month: x } = t.getDate(
      t.setNewDate(r.year, r.month, 1)
    ), { year: A, month: I } = t.getDate(_);
    return T == A && x == I;
  }, M = (_) => {
    let { year: T, month: x, day: A } = r, { year: I, month: L, day: te } = t.getDate(_);
    return T == I && x == L && A == te;
  }, w = () => (e === "week" && (a = t.getDate(a.value - 7 * 24 * 60 * 60 * 1e3)), e === "month" && (o = t.getDate(t.setNewDate(o.year, o.month - 1, 1)), a = t.getDate(o.value - (o.week - 1) * 24 * 60 * 60 * 1e3)), e === "year" && (a = t.getDate(t.setNewDate(a.year - 1, 1, 1))), S(a, "prev")), i = () => (e === "week" && (a = t.getDate(a.value + 7 * 24 * 60 * 60 * 1e3)), e === "month" && (o = t.getDate(t.setNewDate(o.year, o.month + 1, 1)), a = t.getDate(o.value - (o.week - 1) * 24 * 60 * 60 * 1e3)), e === "year" && (a = t.getDate(t.setNewDate(a.year + 1, 1, 1))), S(a, "next")), s = () => (e === "week" && (a = t.getDate(t.getValue(new Date()) - (r.week - 1) * 24 * 60 * 60 * 1e3)), e === "month" && (o = t.getDate(t.setNewDate(r.year, r.month, 1)), a = t.getDate(o.value - (o.week - 1) * 24 * 60 * 60 * 1e3)), e === "year" && (a = t.getDate(t.setNewDate(r.year, 1, 1))), S(a, "handleToDay")), f = (_) => (n === "multiple" && (_.clickDay = !_.clickDay), { detail: {
    toDay: r,
    startDate: a,
    endDate: u,
    list: y,
    clickDate: _
  }, emitName: "handleClick" }), S = (_, T) => {
    if (e === "week" && (u = t.getDate(t.addDate(_.value, 6, "day"))), e === "month" && (u = t.getDate(t.addDate(_.value, 35, "day"))), e === "year") {
      const A = t.getYearMonth(_.year, 12);
      u = t.getDate(_.year + "-" + 12 + "-" + A);
    }
    return y = l(_), { detail: {
      toDay: r,
      startDate: _,
      endDate: u,
      list: y
    }, emitName: T };
  }, l = (_) => {
    let T = [], x = 0;
    if (e === "year") {
      x = 12;
      for (let A = 1; A <= x; A++) {
        const I = t.getYearMonth(_.year, A);
        let L = {
          ...t.getDate(_.year + "-" + A + "-" + 1),
          days: I
        };
        n === "multiple" && (L.clickDay = !1), T.push(L);
      }
    } else {
      e === "week" && (x = 7), e === "month" && (x = 35);
      for (let A = 0; A < x; A++) {
        const I = _.value + A * 24 * 60 * 60 * 1e3;
        let L = {
          ...t.getDate(I)
        };
        n === "multiple" && (L.clickDay = !1), T.push(L);
      }
    }
    return T;
  };
  return {
    isCurrentYear: m,
    isCurrentMonth: k,
    isCurrentDay: M,
    handlePrev: w,
    handleNext: i,
    handleToday: s,
    handleClickDay: f,
    getDetail: S,
    setDateList: l,
    filter: (_, T = 7) => {
      let x = [];
      return _ == null || _.forEach((A, I) => {
        let L = Math.floor(I / T);
        x[L] ? x[L].push(A) : x[L] = [A];
      }), x;
    }
  };
};
const _e = (e, n) => {
  const t = e.__vccOpts || e;
  for (const [r, a] of n)
    t[r] = a;
  return t;
}, wn = { class: "vc-calendar" }, $n = { class: "vc-calendar-header" }, Sn = { class: "vc-calendar-body" }, Dn = { class: "vc-calendar-body__header" }, On = { class: "vc-calendar-body__month" }, Mn = ["title"], Tn = ["onClick"], xn = { class: "vc-day" }, An = { class: "vc-schedule" }, Yn = {
  name: "MonthCalendar"
}, jn = /* @__PURE__ */ Object.assign(Yn, {
  props: {
    hasClick: {
      type: Boolean,
      default: !0
    },
    dataSource: {
      type: Array,
      default: () => []
    },
    columns: {
      type: Array,
      default: () => []
    },
    mode: {
      type: String,
      default: ""
    }
  },
  emits: ["handleClick", "setTitle"],
  setup(e, { expose: n, emit: t }) {
    const r = e, a = G({}), o = Re("month", r.mode), u = () => {
      const { detail: i, emitName: s } = o.handlePrev();
      a.value = i, w(), t("handleClick", i, s);
    }, y = () => {
      const { detail: i, emitName: s } = o.handleNext();
      a.value = i, w(), t("handleClick", i, s);
    }, m = () => {
      const { detail: i, emitName: s } = o.handleToday();
      a.value = i, w(), t("handleClick", i, s);
    }, k = G(), M = (i) => {
      r.mode === "single" && (k.value = i.value);
      const { detail: s, emitName: f } = o.handleClickDay(i);
      a.value = s, t("handleClick", s, f);
    }, w = () => {
      const i = Ie(a.value.list), s = i == null ? void 0 : i.find((S) => S.day === "01");
      let f = s.year + "\u5E74" + s.month + "\u6708";
      t("setTitle", f);
    };
    return Ne(() => {
      m();
    }), be(() => {
      var i;
      a.value.list = r.dataSource.length ? r.dataSource : (i = a.value) == null ? void 0 : i.list, a.value.list = o.filter(a.value.list, r.columns.length);
    }), n({
      handlePrev: u,
      handleNext: y,
      handleToday: m,
      handleClickDay: M
    }), (i, s) => (Y(), j("div", wn, [
      v("div", $n, [
        W(i.$slots, "header", {}, void 0, !0)
      ]),
      v("div", Sn, [
        v("div", Dn, [
          v("table", null, [
            v("thead", null, [
              v("tr", null, [
                (Y(!0), j(U, null, q(r.columns, (f, S) => (Y(), j("th", { key: S }, ue(f), 1))), 128))
              ])
            ])
          ])
        ]),
        v("div", On, [
          v("table", null, [
            v("colgroup", null, [
              (Y(!0), j(U, null, q(r.columns.length, (f) => (Y(), j("col", { key: f }))), 128))
            ]),
            v("tbody", null, [
              (Y(!0), j(U, null, q(a.value.list, (f, S) => (Y(), j("tr", { key: S }, [
                (Y(!0), j(U, null, q(f, (l) => (Y(), j("td", {
                  key: l,
                  title: l.date
                }, [
                  v("div", {
                    onClick: ($) => r.hasClick && M(l),
                    class: Pe(["vc-picker-cell", {
                      "vc-pointer": r.hasClick,
                      "vc-notmonth": !Q(o).isCurrentMonth(l.value),
                      "vc-picker-active": r.mode !== "single" ? l.clickDay : l.value === k.value,
                      "vc-picker-today": Q(o).isCurrentDay(l.value)
                    }])
                  }, [
                    v("div", xn, [
                      W(i.$slots, "day", { data: l }, void 0, !0)
                    ]),
                    v("div", An, [
                      W(i.$slots, "schedule", { data: l }, void 0, !0)
                    ])
                  ], 10, Tn)
                ], 8, Mn))), 128))
              ]))), 128))
            ])
          ])
        ])
      ])
    ]));
  }
}), Nn = /* @__PURE__ */ _e(jn, [["__scopeId", "data-v-0eba185f"]]);
const Pn = { class: "vc-calendar" }, In = { class: "vc-calendar-header" }, En = { class: "vc-calendar-body" }, Fn = { class: "vc-calendar-body__header" }, Ln = { class: "vc-calendar-body__week" }, Hn = ["title"], Rn = ["onClick"], Wn = { class: "vc-day" }, Bn = { class: "vc-schedule" }, Vn = {
  name: "WeekCalendar"
}, zn = /* @__PURE__ */ Object.assign(Vn, {
  props: {
    hasClick: {
      type: Boolean,
      default: !0
    },
    dataSource: {
      type: Array,
      default: () => []
    },
    columns: {
      type: Array,
      default: () => []
    },
    mode: {
      type: String,
      default: ""
    }
  },
  emits: ["handleClick", "setTitle"],
  setup(e, { expose: n, emit: t }) {
    const r = e, a = G({}), o = Re("week", r.mode), u = () => {
      const { detail: i, emitName: s } = o.handlePrev();
      a.value = i, t("handleClick", i, s);
    }, y = () => {
      const { detail: i, emitName: s } = o.handleNext();
      a.value = i, t("handleClick", i, s);
    }, m = () => {
      const { detail: i, emitName: s } = o.handleToday();
      a.value = i, t("handleClick", i, s);
    }, k = G(), M = (i) => {
      r.mode === "single" && (k.value = i.value);
      const { detail: s, emitName: f } = o.handleClickDay(i);
      a.value = s, t("handleClick", s, f);
    }, w = () => {
      const { startDate: i, endDate: s, toDay: f } = Ie(a.value);
      let S = "", l = (i == null ? void 0 : i.month) || "", $ = (i == null ? void 0 : i.year) || "";
      (i == null ? void 0 : i.month) !== (s == null ? void 0 : s.month) && ((f == null ? void 0 : f.month) === (i == null ? void 0 : i.month) && (l = i.month), (f == null ? void 0 : f.month) === (s == null ? void 0 : s.month) && (l = s.month)), (i == null ? void 0 : i.year) !== (s == null ? void 0 : s.year) && ((f == null ? void 0 : f.year) === (i == null ? void 0 : i.year) && ($ = i.year), (f == null ? void 0 : f.year) === (s == null ? void 0 : s.year) && ($ = s.year)), S = $ + "\u5E74" + l + "\u6708" || "", t("setTitle", S);
    };
    return st(
      a,
      (i) => {
        i && w();
      },
      { deep: !0 }
    ), Ne(() => {
      m();
    }), be(() => {
      var i;
      a.value.list = r.dataSource.length ? r.dataSource : (i = a.value) == null ? void 0 : i.list, a.value.list = o.filter(a.value.list, r.columns.length);
    }), n({
      handlePrev: u,
      handleNext: y,
      handleToday: m,
      handleClickDay: M
    }), (i, s) => (Y(), j("div", Pn, [
      v("div", In, [
        W(i.$slots, "header", {}, void 0, !0)
      ]),
      v("div", En, [
        v("div", Fn, [
          v("table", null, [
            v("thead", null, [
              v("tr", null, [
                (Y(!0), j(U, null, q(r.columns, (f, S) => (Y(), j("th", { key: S }, ue(f), 1))), 128))
              ])
            ])
          ])
        ]),
        v("div", Ln, [
          v("table", null, [
            v("colgroup", null, [
              (Y(!0), j(U, null, q(r.columns.length, (f) => (Y(), j("col", { key: f }))), 128))
            ]),
            v("tbody", null, [
              (Y(!0), j(U, null, q(a.value.list, (f, S) => (Y(), j("tr", { key: S }, [
                (Y(!0), j(U, null, q(f, (l) => (Y(), j("td", {
                  key: l,
                  title: l.date
                }, [
                  v("div", {
                    onClick: ($) => r.hasClick && M(l),
                    class: Pe(["vc-picker-cell", {
                      "vc-pointer": r.hasClick,
                      "vc-notmonth": !Q(o).isCurrentMonth(l.value),
                      "vc-picker-active": r.mode !== "single" ? l.clickDay : l.value === k.value,
                      "vc-picker-today": Q(o).isCurrentDay(l.value)
                    }])
                  }, [
                    v("div", Wn, [
                      W(i.$slots, "day", { data: l }, void 0, !0)
                    ]),
                    v("div", Bn, [
                      W(i.$slots, "schedule", { data: l }, void 0, !0)
                    ])
                  ], 10, Rn)
                ], 8, Hn))), 128))
              ]))), 128))
            ])
          ])
        ])
      ])
    ]));
  }
}), Un = /* @__PURE__ */ _e(zn, [["__scopeId", "data-v-bd4dcf6f"]]);
const qn = { class: "vc-calendar" }, Zn = { class: "vc-calendar-header" }, Jn = { class: "vc-calendar-body" }, Gn = { class: "vc-calendar-body__year" }, Qn = ["title"], Xn = ["onClick"], Kn = { class: "vc-day" }, er = { class: "vc-schedule" }, tr = {
  name: "YearCalendar"
}, nr = /* @__PURE__ */ Object.assign(tr, {
  props: {
    hasClick: {
      type: Boolean,
      default: !0
    },
    dataSource: {
      type: Array,
      default: () => []
    },
    mode: {
      type: String,
      default: ""
    }
  },
  emits: ["handleClick", "setTitle"],
  setup(e, { expose: n, emit: t }) {
    const r = e, a = G({}), o = Re("year", r.mode), u = () => {
      const { detail: i, emitName: s } = o.handlePrev();
      a.value = i, t("handleClick", i, s);
    }, y = () => {
      const { detail: i, emitName: s } = o.handleNext();
      a.value = i, t("handleClick", i, s);
    }, m = () => {
      const { detail: i, emitName: s } = o.handleToday();
      a.value = i, t("handleClick", i, s);
    }, k = G(), M = (i) => {
      r.mode === "single" && (k.value = i.value);
      const { detail: s, emitName: f } = o.handleClickDay(i);
      a.value = s, t("handleClick", s, f);
    }, w = () => {
      const { startDate: i } = Ie(a.value);
      let s = "";
      s = (i == null ? void 0 : i.year) + "\u5E74" || "", t("setTitle", s);
    };
    return st(
      a,
      (i) => {
        i && w();
      },
      { deep: !0 }
    ), Ne(() => {
      m();
    }), be(() => {
      var i;
      a.value.list = r.dataSource.length ? r.dataSource : (i = a.value) == null ? void 0 : i.list, a.value.list = o.filter(a.value.list, 3);
    }), n({
      handlePrev: u,
      handleNext: y,
      handleToday: m,
      handleClickDay: M
    }), (i, s) => (Y(), j("div", qn, [
      v("div", Zn, [
        W(i.$slots, "header", {}, void 0, !0)
      ]),
      v("div", Jn, [
        v("div", Gn, [
          v("table", null, [
            v("colgroup", null, [
              (Y(), j(U, null, q(3, (f) => v("col", { key: f })), 64))
            ]),
            v("tbody", null, [
              (Y(!0), j(U, null, q(a.value.list, (f, S) => (Y(), j("tr", { key: S }, [
                (Y(!0), j(U, null, q(f, (l) => (Y(), j("td", {
                  key: l,
                  title: `${l.year}-${l.month}`
                }, [
                  v("div", {
                    onClick: ($) => r.hasClick && M(l),
                    class: Pe(["vc-picker-cell", {
                      "vc-pointer": r.hasClick,
                      "vc-notmonth": !Q(o).isCurrentYear(l.value),
                      "vc-picker-active": r.mode !== "single" ? l.clickDay : l.value === k.value,
                      "vc-picker-today": Q(o).isCurrentMonth(l.value)
                    }])
                  }, [
                    v("div", Kn, [
                      W(i.$slots, "day", { data: l }, void 0, !0)
                    ]),
                    v("div", er, [
                      W(i.$slots, "schedule", { data: l }, void 0, !0)
                    ])
                  ], 10, Xn)
                ], 8, Qn))), 128))
              ]))), 128))
            ])
          ])
        ])
      ])
    ]));
  }
}), rr = /* @__PURE__ */ _e(nr, [["__scopeId", "data-v-8d9c0d82"]]);
const ar = { class: "vc-calendar-header-title" }, or = { class: "vc-calendar-header-btns" }, ir = {
  name: "calendar"
}, lr = /* @__PURE__ */ Object.assign(ir, {
  props: {
    type: {
      type: String,
      default: "week",
      validate: (e) => ["week", "month", "year"].includes(e)
    },
    hasClick: {
      type: Boolean,
      default: !0
    },
    mode: {
      type: String,
      default: "single",
      validate: (e) => ["single", "multiple"].includes(e)
    },
    dataSource: {
      type: Array,
      default: () => []
    },
    columns: {
      type: Array,
      default: () => ["\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D", "\u65E5"]
    },
    currentTitle: {
      type: String,
      default: ""
    }
  },
  emits: ["prev", "handleToDay", "next", "handleClick"],
  setup(e, { expose: n, emit: t }) {
    const r = e, a = (f, S) => {
      t(S, f);
    }, o = {
      week: Un,
      month: Nn,
      year: rr
    }, u = G(), y = G();
    be(() => {
      r.type && (y.value = pt(o[r.type]));
    });
    const m = G(), k = (f) => {
      m.value = f;
    }, M = vt(() => {
      let f = "";
      return r.type === "week" && (f = "\u672C\u5468"), r.type === "month" && (f = "\u672C\u6708"), r.type === "year" && (f = "\u672C\u5E74"), r.currentTitle || f;
    }), w = () => u.value.handlePrev(), i = () => u.value.handleToday(), s = () => u.value.handleNext();
    return n({
      prev: w,
      handleToday: i,
      next: s
    }), (f, S) => (Y(), bt(_t(y.value), Ct({
      ref_key: "componentRef",
      ref: u,
      onHandleClick: a,
      onSetTitle: k,
      dataSource: r.dataSource,
      hasClick: r.hasClick,
      columns: r.columns,
      mode: r.mode
    }, f.$attrs), {
      header: ke(() => [
        W(f.$slots, "header", {}, () => [
          v("div", ar, [
            W(f.$slots, "title", {}, () => [
              ze(ue(m.value), 1)
            ], !0)
          ]),
          v("div", or, [
            W(f.$slots, "btns", {}, () => [
              v("span", { onClick: w }, [
                re(Q(gn))
              ]),
              v("span", { onClick: i }, ue(Q(M)), 1),
              v("span", { onClick: s }, [
                re(Q(_n))
              ])
            ], !0)
          ])
        ], !0)
      ]),
      day: ke(({ data: l }) => [
        W(f.$slots, "day", { data: l }, () => [
          ze(ue(r.type !== "year" ? l.day : l.month + "\u6708"), 1)
        ], !0)
      ]),
      schedule: ke(({ data: l }) => [
        W(f.$slots, "schedule", { data: l }, void 0, !0)
      ]),
      _: 3
    }, 16, ["dataSource", "hasClick", "columns", "mode"]));
  }
}), ve = /* @__PURE__ */ _e(lr, [["__scopeId", "data-v-96949bb2"]]);
ve.install = (e) => e.component(ve.name, ve);
const je = [ve], We = (e) => {
  We.installed || je.forEach((n, t) => {
    e.component("vc-" + (n.name || je[t].default), n);
  });
};
typeof window < "u" && window.Vue && We(window.Vue);
const cr = {
  install: We,
  ...je
};
export {
  cr as default
};
